package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.system.domain.CommunityReport;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author wanglong
 * @date 2024/3/28
 * @apiNote
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
public class CommunityReportVo extends CommunityReport {

    private static final long serialVersionUID = 6200422354019049845L;
    /**
     * 报修id
     */
    private Long reportId;

    /**
     * 报修人
     */
    @Excel(name = "报修人")
    private String reportName;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 地址
     */
    @Excel(name = "地址")
    private String address;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickName;

    /**
     * 报修时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报修时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportDate;

    /**
     * 维修工(用户表)
     */
    @Excel(name = "维修工(用户表)")
    private String userId;

    /**
     * 状态(0:未指派，1：待处理，2：已完成)
     */
    @Excel(name = "状态(0:未指派，1：待处理，2：已完成)")
    private String status;

    /**
     * 维修详情
     */
    private String detailsRemark;

    /**
     * 报修详情
     */
    private String reportRemark;

    /**
     * 维修开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date detailsCreateTime;

}
